package de.tum.icuproject.persistence.couchdb.select;

import de.tum.icuproject.Subscriber;

/**
 * Handles generate player id requests
 * @author stefanoturchetta
 *
 */
public class PlayerIdGeneratorRequestHandler extends IdGeneratorRequestHandler {

	public PlayerIdGeneratorRequestHandler(Subscriber subscriber) {
		super(subscriber);
	}

	@Override
	protected void notifySubscriber(int id) {
		Subscriber subscriber = this.getSubscriber();
		subscriber.setPlayerId(id);
	}

}
